
# Copyright (c) 2010 Nokia Corporation.


TARGET = quicksand
TEMPLATE = app
VERSION = 1.0.0

INCLUDEPATH += sandbox_src teng_src

Qt += core \
      gui

maemo5 {
    CONFIG += qdbus
}

RESOURCES = src/resources.qrc

SOURCES += src/main.cpp \
           src/widget.cpp \
           src/mainwindow.cpp \
           src/toolbarwidget.cpp \
           src/toolbarbutton.cpp \
    sandbox_src/vsandbox.cpp \
    sandbox_src/vsand_grid.cpp \
    sandbox_src/table_texture.cpp \
    sandbox_src/sand_texture.cpp \
    teng_src/TSurface_RGBA8888.cpp \
    teng_src/TString.cpp \
    teng_src/TMath.cpp \
    teng_src/TEngine.cpp \
    teng_src/TBase.cpp \
    teng_src/T2DMath.cpp \
    teng_src/TDrawHelpers.cpp \
    sandbox_src/reset_images.cpp \
    sandbox_src/intro_sandpaint.cpp \
    sandbox_src/intro_flare.cpp \
    sandbox_src/intro_digia.cpp \
    sandbox_src/vsand_intro.cpp

HEADERS  += src/widget.h \
            src/mainwindow.h \
            src/toolbarwidget.h \
            src/toolbarbutton.h \
    sandbox_src/vsand_grid.h \
    sandbox_src/vsandbox.h \
    teng_src/TString.h \
    teng_src/TMath.h \
    teng_src/TEngine.h \
    teng_src/TBase.h \
    teng_src/T2DMath.h \
    teng_src/TSurface_RGBA8888.h \
    teng_src/TDrawHelpers.h \
    sandbox_src/vsand_intro.h


symbian { 
    CONFIG += mobility
    MOBILITY = sensors contacts messaging

    HEADERS  += src/ContactsDialog.h \
           src/CameraFileObserver.h

    SOURCES +=  src/ContactsDialog.cpp \
           src/CameraFileObserver.cpp


    TARGET = QuickSand
    ICON = src/icon.svg
    TARGET.UID3 = 0xE426d043
    TARGET.EPOCHEAPSIZE = 0x100000 0x2000000
    TARGET.EPOCSTACKSIZE = 0x14000

    LIBS += -lcone -leikcore -lavkon

    TARGET.CAPABILITY = NetworkServices \
        Location \
        ReadUserData \
        WriteUserData \
        LocalServices \
        UserEnvironment \
        ReadDeviceData \
        WriteDeviceData
}

maemo5 { 
    CONFIG += mobility
    MOBILITY = sensors contacts messaging

    HEADERS  += src/ContactsDialog.h
    SOURCES +=  src/ContactsDialog.cpp

    isEmpty(PREFIX):PREFIX = /usr
    BINDIR = $$PREFIX/bin
    DATADIR = $$PREFIX/share

    DEFINES += DATADIR=\\\"$$DATADIR\\\" \
        PKGDATADIR=\\\"$$PKGDATADIR\\\"

    INSTALLS += target \
        desktop \
        icon64

    target.path = $$BINDIR
    desktop.path = $$DATADIR/applications/hildon
    desktop.files += quicksand.desktop
    
    icon64.path = $$DATADIR/icons/hicolor/64x64/apps
    icon64.files += icon/64x64/quicksand.png
}
